package com.google.ant.extensions.types;

import java.util.ArrayList;
import java.util.List;

import org.apache.tools.ant.types.DataType;

public class Dependencies extends DataType {
    private List<Dependency> dependencies = new ArrayList<Dependency>();
    private boolean chained = true;

    public Dependencies() {
    }

    public void addDependency(Dependency dep) {
        dependencies.add(dep);
    }

    public List<Dependency> getDependencies() {
        return dependencies;
    }
    
    public boolean isChained() {
        return this.chained;
    }

    public void setChained(boolean c) {
        this.chained = c;
    }
}
